package com.itheima.admin.service;

import com.itheima.PageVo;
import com.itheima.admin.dto.PageDto;
import com.itheima.admin.dto.GrantRoleDto;
import com.itheima.admin.dto.UserDto;
import com.itheima.admin.vo.UserPageVo;
import com.itheima.admin.vo.UserVo;

/**
 * @author WXL
 */
public interface IUserService {
    UserVo queryById(String id);

    boolean deleteById(String id);

    boolean addUser(UserDto userDto);

    PageVo<UserPageVo> queryByPage(PageDto pageDto);

    boolean editUser(UserVo userVo);

    boolean grantRole(GrantRoleDto roleDto);
}
